﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000597 RID: 1431
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class FinishEmotionDialoguePerformanceScRsp : IMessage<FinishEmotionDialoguePerformanceScRsp>, IMessage, IEquatable<FinishEmotionDialoguePerformanceScRsp>, IDeepCloneable<FinishEmotionDialoguePerformanceScRsp>, IBufferMessage
	{
		// Token: 0x1700125A RID: 4698
		// (get) Token: 0x06004051 RID: 16465 RVA: 0x000B036B File Offset: 0x000AE56B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<FinishEmotionDialoguePerformanceScRsp> Parser
		{
			get
			{
				return FinishEmotionDialoguePerformanceScRsp._parser;
			}
		}

		// Token: 0x1700125B RID: 4699
		// (get) Token: 0x06004052 RID: 16466 RVA: 0x000B0372 File Offset: 0x000AE572
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return FinishEmotionDialoguePerformanceScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700125C RID: 4700
		// (get) Token: 0x06004053 RID: 16467 RVA: 0x000B0384 File Offset: 0x000AE584
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return FinishEmotionDialoguePerformanceScRsp.Descriptor;
			}
		}

		// Token: 0x06004054 RID: 16468 RVA: 0x000B038B File Offset: 0x000AE58B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FinishEmotionDialoguePerformanceScRsp()
		{
		}

		// Token: 0x06004055 RID: 16469 RVA: 0x000B0394 File Offset: 0x000AE594
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FinishEmotionDialoguePerformanceScRsp(FinishEmotionDialoguePerformanceScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.dialogueId_ = other.dialogueId_;
			this.scriptId_ = other.scriptId_;
			this.rewardList_ = ((other.rewardList_ != null) ? other.rewardList_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06004056 RID: 16470 RVA: 0x000B03F8 File Offset: 0x000AE5F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FinishEmotionDialoguePerformanceScRsp Clone()
		{
			return new FinishEmotionDialoguePerformanceScRsp(this);
		}

		// Token: 0x1700125D RID: 4701
		// (get) Token: 0x06004057 RID: 16471 RVA: 0x000B0400 File Offset: 0x000AE600
		// (set) Token: 0x06004058 RID: 16472 RVA: 0x000B0408 File Offset: 0x000AE608
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x1700125E RID: 4702
		// (get) Token: 0x06004059 RID: 16473 RVA: 0x000B0411 File Offset: 0x000AE611
		// (set) Token: 0x0600405A RID: 16474 RVA: 0x000B0419 File Offset: 0x000AE619
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint DialogueId
		{
			get
			{
				return this.dialogueId_;
			}
			set
			{
				this.dialogueId_ = value;
			}
		}

		// Token: 0x1700125F RID: 4703
		// (get) Token: 0x0600405B RID: 16475 RVA: 0x000B0422 File Offset: 0x000AE622
		// (set) Token: 0x0600405C RID: 16476 RVA: 0x000B042A File Offset: 0x000AE62A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ScriptId
		{
			get
			{
				return this.scriptId_;
			}
			set
			{
				this.scriptId_ = value;
			}
		}

		// Token: 0x17001260 RID: 4704
		// (get) Token: 0x0600405D RID: 16477 RVA: 0x000B0433 File Offset: 0x000AE633
		// (set) Token: 0x0600405E RID: 16478 RVA: 0x000B043B File Offset: 0x000AE63B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemList RewardList
		{
			get
			{
				return this.rewardList_;
			}
			set
			{
				this.rewardList_ = value;
			}
		}

		// Token: 0x0600405F RID: 16479 RVA: 0x000B0444 File Offset: 0x000AE644
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as FinishEmotionDialoguePerformanceScRsp);
		}

		// Token: 0x06004060 RID: 16480 RVA: 0x000B0454 File Offset: 0x000AE654
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(FinishEmotionDialoguePerformanceScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && this.DialogueId == other.DialogueId && this.ScriptId == other.ScriptId && object.Equals(this.RewardList, other.RewardList) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06004061 RID: 16481 RVA: 0x000B04C4 File Offset: 0x000AE6C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.DialogueId != 0U)
			{
				num ^= this.DialogueId.GetHashCode();
			}
			if (this.ScriptId != 0U)
			{
				num ^= this.ScriptId.GetHashCode();
			}
			if (this.rewardList_ != null)
			{
				num ^= this.RewardList.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06004062 RID: 16482 RVA: 0x000B054B File Offset: 0x000AE74B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06004063 RID: 16483 RVA: 0x000B0553 File Offset: 0x000AE753
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06004064 RID: 16484 RVA: 0x000B055C File Offset: 0x000AE75C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.ScriptId != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.ScriptId);
			}
			if (this.DialogueId != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.DialogueId);
			}
			if (this.rewardList_ != null)
			{
				output.WriteRawTag(90);
				output.WriteMessage(this.RewardList);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06004065 RID: 16485 RVA: 0x000B05F0 File Offset: 0x000AE7F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.DialogueId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.DialogueId);
			}
			if (this.ScriptId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ScriptId);
			}
			if (this.rewardList_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.RewardList);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06004066 RID: 16486 RVA: 0x000B0678 File Offset: 0x000AE878
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(FinishEmotionDialoguePerformanceScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.DialogueId != 0U)
			{
				this.DialogueId = other.DialogueId;
			}
			if (other.ScriptId != 0U)
			{
				this.ScriptId = other.ScriptId;
			}
			if (other.rewardList_ != null)
			{
				if (this.rewardList_ == null)
				{
					this.RewardList = new ItemList();
				}
				this.RewardList.MergeFrom(other.RewardList);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06004067 RID: 16487 RVA: 0x000B0708 File Offset: 0x000AE908
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06004068 RID: 16488 RVA: 0x000B0714 File Offset: 0x000AE914
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 72U)
				{
					if (num == 48U)
					{
						this.ScriptId = input.ReadUInt32();
						continue;
					}
					if (num == 72U)
					{
						this.DialogueId = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 90U)
					{
						if (this.rewardList_ == null)
						{
							this.RewardList = new ItemList();
						}
						input.ReadMessage(this.RewardList);
						continue;
					}
					if (num == 96U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x0400195E RID: 6494
		private static readonly MessageParser<FinishEmotionDialoguePerformanceScRsp> _parser = new MessageParser<FinishEmotionDialoguePerformanceScRsp>(() => new FinishEmotionDialoguePerformanceScRsp());

		// Token: 0x0400195F RID: 6495
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001960 RID: 6496
		public const int RetcodeFieldNumber = 12;

		// Token: 0x04001961 RID: 6497
		private uint retcode_;

		// Token: 0x04001962 RID: 6498
		public const int DialogueIdFieldNumber = 9;

		// Token: 0x04001963 RID: 6499
		private uint dialogueId_;

		// Token: 0x04001964 RID: 6500
		public const int ScriptIdFieldNumber = 6;

		// Token: 0x04001965 RID: 6501
		private uint scriptId_;

		// Token: 0x04001966 RID: 6502
		public const int RewardListFieldNumber = 11;

		// Token: 0x04001967 RID: 6503
		private ItemList rewardList_;
	}
}
